package com.antler.smt.enums;

/**
 * 权限类型枚举
 *
 * @author vic
 * @date 2017-11-28 16:20
 */
public enum PermissionTypeEnum implements BaseEnum {
    /**
     * 目录
     */
    CATALOG(0, "目录"),

    /**
     * 菜单
     */
    MENU(1, "菜单"),

    /**
     * 按钮
     */
    BUTTON(2, "按钮");


    /**
     * 键
     */
    private int key;

    /**
     * 描述
     */
    private String desc;

    /**
     * 键
     *
     * @return
     */
    @Override
    public Integer key() {
        return key;
    }

    /**
     * 描述
     *
     * @return
     */
    @Override
    public String desc() {
        return desc;
    }

    PermissionTypeEnum(final Integer key, final String desc) {
        this.key = key;
        this.desc = desc;
    }
}
